Repository navigation
fix(web): toasts show above the browser panel's page - #1043
Merged
Merged
Conversation
The browser panel's live page and the toast stack were both at z-index 40, and the page is added to the body after the toast viewport, so it won the tie and covered toasts in the top-right corner. A device floated over the chat had the same problem. Toasts now sit at z-45: above the workspace layers at 40 (browser page, floating device, floating thread list) and still below menus and dialogs at 50. The toast layering test now checks the toast stays above 40.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the browser panel open, a toast in the top-right corner (for example the provider update notice) was covered and cut off by the web page. The page and the toast stack were both at z-index 40, and the page is added to the body after the toast viewport, so it won the tie. A device floated over the chat had the same problem, since it first opens in that same corner.
Toasts now sit at z-45: above the workspace layers at 40 (browser page, floating device, floating thread list) and still below menus, popovers and dialogs at 50, so a toast still never takes clicks meant for an open menu. The toast layering browser test now also checks that the toast stays above 40.